package com.alibaba.cloud.domain.vo;

import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;

import lombok.Data;

/***
 * @description: EmailInfoVo
 * @author: zhb1316783262@163.com
 * @date: 2022/6/25 16:30
 */
@Data
public class EmailInfoVo {
    /**
     * 接收人邮箱(多个逗号分开)
     */
    private String email;

    /**
     * 主题
     */
    private String subject;

    /**
     * 模板
     */
    private String template;

    /**
     * 发送时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime sendTime;

    /**
     * 发送内容
     */
    private String content;
}
